gui/macOS: Constify methods in file provider socket controller
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Wed, 19 Mar 2025 17:53:56 +0000 (18:53 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Tue, 25 Mar 2025 11:12:22 +0000 (11:12 +0000)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/gui/macOS/fileprovidersocketcontroller.cpp
src/gui/macOS/fileprovidersocketcontroller.h

index ae70f9fdbe0832eeaca84fff02dfbcd470275ad2..1f9bd202bf0b375f66c5bca9d88074a3994e2036 100644 (file)
@@ -162,7 +162,7 @@ void FileProviderSocketController::requestFileProviderDomainInfo() const
     sendMessage(requestMessage);
 }
 
-void FileProviderSocketController::slotAccountStateChanged(const AccountState::State state)
+void FileProviderSocketController::slotAccountStateChanged(const AccountState::State state) const
 {
     switch(state) {
     case AccountState::Disconnected:
@@ -241,7 +241,7 @@ void FileProviderSocketController::sendAccountDetails() const
     sendMessage(message);
 }
 
-void FileProviderSocketController::reportSyncState(const QString &receivedState)
+void FileProviderSocketController::reportSyncState(const QString &receivedState) const
 {
     if (!accountState()) {
         qCWarning(lcFileProviderSocketController) << "No account state available to report sync state";
index 30fc8251a8285e5aeafe09634865a427d3843b1b..94c3ccfb0aa9abfe25de1c1a32279c271264f064 100644 (file)
@@ -47,14 +47,14 @@ private slots:
     void slotSocketDestroyed(const QObject * const object);
     void slotReadyRead();
 
-    void slotAccountStateChanged(const OCC::AccountState::State state);
+    void slotAccountStateChanged(const OCC::AccountState::State state) const;
 
     void parseReceivedLine(const QString &receivedLine);
     void requestFileProviderDomainInfo() const;
     void sendAccountDetails() const;
     void sendNotAuthenticated() const;
 
-    void reportSyncState(const QString &receivedState);
+    void reportSyncState(const QString &receivedState) const;
 
 private:
     QPointer<QLocalSocket> _socket;